<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>


<script>
    function a() {
        a.name="张三";
        return a;
    }
    var a1=new a();
    var a2=new a();
    console.log(a1+"\n"+a2)
</script>
</body>
</html>